package records

import (
	"github.com/golib/mysql"
)

const RecordNameOnlineCourseResource = "online_course_resource"

func init() {
	var r = &OnlineCourseResource{}
	mysql.RegisterRecord(r.Name(), r)
}

type OnlineCourseResource struct {
	CourseResourceId int    `json:"courseResourceId" form:"courseResourceId" column:"course_resource_id" primary:"true" modify:"false"`
	CourseId         int    `form:"courseId" column:"course_id" modify:"true" json:"courseId"`
	ClassId          int    `json:"classId" form:"classId" column:"class_id" modify:"true"`
	TermId           int    `form:"termId" column:"term_id" modify:"true" json:"termId"`
	TeacherId        int    `modify:"true" json:"teacherId" form:"teacherId" column:"teacher_id"`
	Type             int    `json:"type" form:"type" column:"type" modify:"true"`
	OrderNum         int    `json:"orderNum" form:"orderNum" column:"order_num" modify:"true"`
	Desc             string `form:"desc" column:"desc" modify:"true" json:"desc"`
	Url              string `json:"url" form:"url" column:"url" modify:"true"`
	CreateTime       string `form:"createTime" column:"create_time" modify:"false" json:"createTime"`
	UpdateTime       string `json:"updateTime" form:"updateTime" column:"update_time" modify:"false"`
}

func (r *OnlineCourseResource) Name() string {
	return RecordNameOnlineCourseResource
}
